<?php
class AppointmentController extends CommonController{
	public function indexBefore(){
		$hair_stylist_list=M('HairStylist')->oneField('name','id')->select();
		$project_list=M('Project')->oneField('name','id')->select();
		$this->assign('hair_stylist_list',$hair_stylist_list);
		$this->assign('project_list',$project_list);
	}
	public function status(){
		$data['id']=intval($_GET['id']);
		$data['status']=1;
		M($this->table)->update($data);
		$this->redirect();
	}
}